﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bomber.TF.GameCenter
{
    public static class SpeciesTypeEx
    {
        public static bool IsBlock(this SpeciesType speciesType)
            => speciesType.GetHashCode() > SpeciesType.None.GetHashCode() 
            && speciesType.GetHashCode() < SpeciesType.Map1.GetHashCode();

        public static bool IsBomber(this SpeciesType speciesType)
            => speciesType.GetHashCode() >= SpeciesType.Bomber1.GetHashCode() 
            && speciesType.GetHashCode() < SpeciesType.Bomb1.GetHashCode();

        public static bool IsBomb(this SpeciesType speciesType)
            => speciesType.GetHashCode() >= SpeciesType.Bomb1.GetHashCode() 
            && speciesType.GetHashCode() < SpeciesType.BombTool.GetHashCode();

        public static bool IsTool(this SpeciesType speciesType)
            => speciesType.GetHashCode() >= SpeciesType.BombTool.GetHashCode();
    }
}
